package com.four.entity;

import lombok.Data;

import java.util.List;

@Data
public class Admin {
    private Integer id;

    private String account;

    private String password;

    private Integer sectionId;

    private String name;

    private String education;

    private String adminDesc;

    private String adminUrl;

    private Integer adminPhonenumber;

    private String idcard;

    private String adminStatus;

    private String achievement;

    private String exp;

    private String book;

    private String major;

    private Section section;

    private Role role;

    public String getAchievement() {
        return achievement;
    }

    public void setAchievement(String achievement) {
        this.achievement = achievement;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }

    public String getBook() {
        return book;
    }

    public void setBook(String book) {
        this.book = book;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Section getSection() {
        return section;
    }

    public void setSection(Section section) {
        this.section = section;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getSectionId() {
        return sectionId;
    }

    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education == null ? null : education.trim();
    }

    public String getAdminDesc() {
        return adminDesc;
    }

    public void setAdminDesc(String adminDesc) {
        this.adminDesc = adminDesc == null ? null : adminDesc.trim();
    }

    public String getAdminUrl() {
        return adminUrl;
    }

    public void setAdminUrl(String adminUrl) {
        this.adminUrl = adminUrl == null ? null : adminUrl.trim();
    }

    public Integer getAdminPhonenumber() {
        return adminPhonenumber;
    }

    public void setAdminPhonenumber(Integer adminPhonenumber) {
        this.adminPhonenumber = adminPhonenumber;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    public String getAdminStatus() {
        return adminStatus;
    }

    public void setAdminStatus(String adminStatus) {
        this.adminStatus = adminStatus == null ? null : adminStatus.trim();
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", sectionId=" + sectionId +
                ", name='" + name + '\'' +
                ", education='" + education + '\'' +
                ", adminDesc='" + adminDesc + '\'' +
                ", adminUrl='" + adminUrl + '\'' +
                ", adminPhonenumber=" + adminPhonenumber +
                ", idcard='" + idcard + '\'' +
                ", adminStatus='" + adminStatus + '\'' +
                ", section=" + section +
                '}';
    }
}